Skip to content

Conversation

jandubois
Copy link
Member

@jandubois jandubois commented Sep 10, 2024

Additionally a Proto value of "any" would match both TCP and UDP ports.

The default for Proto remains tcp, both for backwards compatibility, and because any rarely makes sense, except e.g. when you want to disable all port forwarding for any protocol.

We should also update hack/test-portforwarding.pl to cover UDP port forwarding as well. Maybe in a separate PR to allow for manual testing of UDP forwarding rules already.

Additionally a Proto value of "any" would match both TCP
and UDP ports.

Signed-off-by: Jan Dubois <[email protected]>
@jandubois jandubois marked this pull request as ready for review September 19, 2024 00:33
@jandubois jandubois requested a review from a team September 19, 2024 00:34
@jandubois
Copy link
Member Author

UDP port forwarding tests should go into a separate PR.

This PR just makes it possible to have separate rules for TCP vs. UDP; without this PR the TCP rules were applied to UDP as well.

Copy link
Member

@AkihiroSuda AkihiroSuda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks

@jandubois jandubois merged commit f6a59b0 into lima-vm:master Sep 20, 2024
26 of 27 checks passed
@jandubois jandubois deleted the forward-udp branch February 28, 2025 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants